package simu.testers;

import simu.nodes.*;


/**
 * This tester is for check the Decorator Pattern.
 * @author edwinfg
 *
 */
public class TestDecoratorPattern {

	public static void main(String[] args) {
		
	Node myNode = new APNode();
	System.out.println(myNode.getDescription() 
			+" , my cost is $"+myNode.cost());
	
	System.out.println();
	
	Node myNode3 = new APNode();
	myNode3 = new Internet(myNode3);
	myNode3 = new HardDrive(myNode3);
	myNode3 = new Mic(myNode3);
	System.out.println(myNode3.getDescription() 
			+" my total cost is $"+myNode3.cost());
	
	
	System.out.println();
	
	Node myNode1 = new ProcNode();
	myNode1 = new Internet(myNode1);
	myNode1 = new HardDrive(myNode1);
	myNode1 = new Mic(myNode1);
	System.out.println(myNode1.getDescription() 
			+" my total cost is $"+myNode1.cost());
	
	System.out.println();
	
	Node myNode2 = new SimpleNode();
	myNode2 = new Camera(new Internet(new Mic(new Mic(myNode2))));
	System.out.println(myNode2.getDescription() 
			+" my total cost is $"+myNode2.cost());
	
	}
	
	

}
